How should I traverse the object to create jsx using the form of the object as shown below